const { HTTP } = require('../../utils/http');
const { api } = require('../../utils/api');
const { request } = new HTTP();
const app = getApp();
Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },
  /**
   * 组件的属性列表
   */
  properties: {
    visible: {
      type: Boolean,
      default: false
    },
    days: {
      type: String,
      default: '1'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    serviceList: [
      {title: '最实惠', price: 518, duration: 12},
      {title: '最受欢迎', price: 298, duration: 6},
      {title: '最便宜', price: 88, duration: 1},
    ],
    active: 1
  },

  /**
   * 组件的方法列表
   */
  methods: {
    iKnow() {
      this.triggerEvent('myClose');
    }
  }
})
